home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr47 / 335_02.zip / AS7000.TXT < prev    next >
Text File  |  1993-04-01  |  15KB  |  661 lines

  1.  
  2.  
  3.  
  4.                                   - 1 -
  5.  
  6.  
  7.  
  8.        A.  Appendix_for_as7000_Frankenstein_Assembler
  9.  
  10.        A.1  Pseudo_Operations
  11.  
  12.        A.1.1  Standard_Pseudo_Operation_Mnemonics
  13.  
  14.             End                                END
  15.             File Inclusion                     INCL INCLUDE
  16.             If                                 IF
  17.             Else                               ELSE
  18.             End If                             ENDI
  19.             Equate                             EQU
  20.             Set                                SET
  21.             Org                                ORG
  22.             Reserve Memory                     RESERVE RMB
  23.             Define Byte Data                   BYTE DB FCB
  24.             Define Word Data                   DW FDB WORD
  25.             Define String Data                 FCC STRING
  26.             Define Character Set Translation   CHARSET
  27.             Define Character Value             CHARDEF CHD
  28.             Use Character Translation          CHARUSE
  29.  
  30.        A.2  Instructions
  31.  
  32.        A.2.1  Differences_with_the_TI_defined_Syntax
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                   - 2 -
  71.  
  72.  
  73.  
  74.        TI syntax                          as7000 syntax
  75.  
  76.        op % immediate , register          op # immediate , register
  77.        op % immed , register, jump dest   op # immed , register , jump dest
  78.        op @ label                         op label
  79.        op @ label ( B )                   op expr ( B )
  80.        op *register                       op [ register ]
  81.        movd % immed ( B ) , register      movd # immed (B), register
  82.  
  83.        Constants
  84.  
  85.        ?0101010                           %01010101
  86.        >89ab                              $89ab
  87.        ''''                               "'"
  88.  
  89.        Comments
  90.  
  91.        after the last operand             everything following a semicolon
  92.  
  93.        Symbols
  94.  
  95.        R0-R255                            equ with value between 0 and $ff
  96.        R0-R255                            0 to 255, Not Recommended !
  97.        P0-P255                            equ with value between $100 and $1ff
  98.        P0-P255                            256 to 511, Not Recommended !
  99.  
  100.  
  101.        A.2.2  Instruction_List
  102.  
  103.        Opcode   Syntax                           Selection Criteria
  104.  
  105.  
  106.        ADC       '#' expr ',' expr
  107.        ADC       '#' expr ',' expr               DSTA
  108.        ADC       '#' expr ',' expr               DSTB
  109.        ADC       expr ',' expr
  110.        ADC       expr ',' expr                   DSTA
  111.        ADC       expr ',' expr                   DSTB
  112.        ADC       expr ',' expr                   SRCB DSTA
  113.  
  114.        ADD       '#' expr ',' expr
  115.        ADD       '#' expr ',' expr               DSTA
  116.        ADD       '#' expr ',' expr               DSTB
  117.        ADD       expr ',' expr
  118.        ADD       expr ',' expr                   DSTA
  119.        ADD       expr ',' expr                   DSTB
  120.        ADD       expr ',' expr                   SRCB DSTA
  121.  
  122.        AND       '#' expr ',' expr
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                   - 3 -
  137.  
  138.  
  139.  
  140.        Opcode   Syntax                           Selection Criteria
  141.  
  142.        AND       '#' expr ',' expr               DSTA
  143.        AND       '#' expr ',' expr               DSTB
  144.        AND       expr ',' expr
  145.        AND       expr ',' expr                   DSTA
  146.        AND       expr ',' expr                   DSTB
  147.        AND       expr ',' expr                   SRCB DSTA
  148.  
  149.        ANDP      '#' expr ',' expr
  150.        ANDP      expr ',' expr                   SRCA
  151.        ANDP      expr ',' expr                   SRCB
  152.  
  153.        BR        '[' expr ']'
  154.        BR        expr '(' REG ')'                SRCB
  155.        BR        expr
  156.  
  157.        BTJO      '#' expr ',' expr ',' expr
  158.        BTJO      '#' expr ',' expr ',' expr      DSTA
  159.        BTJO      '#' expr ',' expr ',' expr      DSTB
  160.        BTJO      expr ',' expr ',' expr
  161.        BTJO      expr ',' expr ',' expr          DSTA
  162.        BTJO      expr ',' expr ',' expr          DSTB
  163.        BTJO      expr ',' expr ',' expr          SRCB DSTA
  164.  
  165.        BTJOP     '#' expr ',' expr ',' expr
  166.        BTJOP     expr ',' expr ',' expr          SRCA
  167.        BTJOP     expr ',' expr ',' expr          SRCB
  168.  
  169.        BTJZ      '#' expr ',' expr ',' expr
  170.        BTJZ      '#' expr ',' expr ',' expr      DSTA
  171.        BTJZ      '#' expr ',' expr ',' expr      DSTB
  172.        BTJZ      expr ',' expr ',' expr
  173.        BTJZ      expr ',' expr ',' expr          DSTA
  174.        BTJZ      expr ',' expr ',' expr          DSTB
  175.        BTJZ      expr ',' expr ',' expr          SRCB DSTA
  176.  
  177.        BTJZP     '#' expr ',' expr ',' expr
  178.        BTJZP     expr ',' expr ',' expr          SRCA
  179.        BTJZP     expr ',' expr ',' expr          SRCB
  180.  
  181.        CALL      '[' expr ']'
  182.        CALL      expr '(' REG ')'                SRCB
  183.        CALL      expr
  184.  
  185.        CLR       expr
  186.        CLR       expr                            DSTA
  187.        CLR       expr                            DSTB
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                                   - 4 -
  203.  
  204.  
  205.  
  206.        Opcode   Syntax                           Selection Criteria
  207.  
  208.        CLRC
  209.  
  210.        CMP       '#' expr ',' expr
  211.        CMP       '#' expr ',' expr               DSTA
  212.        CMP       '#' expr ',' expr               DSTB
  213.        CMP       expr ',' expr
  214.        CMP       expr ',' expr                   DSTA
  215.        CMP       expr ',' expr                   DSTB
  216.        CMP       expr ',' expr                   SRCB DSTA
  217.  
  218.        CMPA      '[' expr ']'
  219.        CMPA      expr '(' REG ')'                SRCB
  220.        CMPA      expr
  221.  
  222.        DAC       '#' expr ',' expr
  223.        DAC       '#' expr ',' expr               DSTA
  224.        DAC       '#' expr ',' expr               DSTB
  225.        DAC       expr ',' expr
  226.        DAC       expr ',' expr                   DSTA
  227.        DAC       expr ',' expr                   DSTB
  228.        DAC       expr ',' expr                   SRCB DSTA
  229.  
  230.        DEC       expr
  231.        DEC       expr                            DSTA
  232.        DEC       expr                            DSTB
  233.  
  234.        DECD      expr
  235.        DECD      expr                            DSTA
  236.        DECD      expr                            DSTB
  237.  
  238.        DINT
  239.  
  240.        DJNZ      expr ',' expr
  241.        DJNZ      expr ',' expr                   DSTA
  242.        DJNZ      expr ',' expr                   DSTB
  243.  
  244.        DSB       '#' expr ',' expr
  245.        DSB       '#' expr ',' expr               DSTA
  246.        DSB       '#' expr ',' expr               DSTB
  247.        DSB       expr ',' expr
  248.        DSB       expr ',' expr                   DSTA
  249.        DSB       expr ',' expr                   DSTB
  250.        DSB       expr ',' expr                   SRCB DSTA
  251.  
  252.        EINT
  253.  
  254.        IDLE
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                                   - 5 -
  269.  
  270.  
  271.  
  272.        Opcode   Syntax                           Selection Criteria
  273.  
  274.  
  275.        INC       expr
  276.        INC       expr                            DSTA
  277.        INC       expr                            DSTB
  278.  
  279.        INV       expr
  280.        INV       expr                            DSTA
  281.        INV       expr                            DSTB
  282.  
  283.        JC        expr
  284.  
  285.        JEQ       expr
  286.  
  287.        JGE       expr
  288.  
  289.        JGT       expr
  290.  
  291.        JHS       expr
  292.  
  293.        JL        expr
  294.  
  295.        JLT       expr
  296.  
  297.        JMP       expr
  298.  
  299.        JN        expr
  300.  
  301.        JNC       expr
  302.  
  303.        JNE       expr
  304.  
  305.        JNZ       expr
  306.  
  307.        JP        expr
  308.  
  309.        JPZ       expr
  310.  
  311.        JZ        expr
  312.  
  313.        LDA       '[' expr ']'
  314.        LDA       expr '(' REG ')'                SRCB
  315.        LDA       expr
  316.  
  317.        LDSP
  318.  
  319.        MOV       '#' expr ',' expr
  320.        MOV       '#' expr ',' expr               DSTA
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                   - 6 -
  335.  
  336.  
  337.  
  338.        Opcode   Syntax                           Selection Criteria
  339.  
  340.        MOV       '#' expr ',' expr               DSTB
  341.        MOV       expr ',' expr
  342.        MOV       expr ',' expr                   DSTA
  343.        MOV       expr ',' expr                   DSTB
  344.        MOV       expr ',' expr                   SRCA
  345.        MOV       expr ',' expr                   SRCA DSTB
  346.        MOV       expr ',' expr                   SRCB
  347.        MOV       expr ',' expr                   SRCB DSTA
  348.  
  349.        MOVD      '#' expr '(' REG ')' ',' expr
  350.        MOVD      '#' expr ',' expr
  351.        MOVD      expr ',' expr
  352.  
  353.        MOVP      '#' expr ',' expr
  354.        MOVP      expr ',' expr                   DSTA
  355.        MOVP      expr ',' expr                   DSTB
  356.        MOVP      expr ',' expr                   SRCA
  357.        MOVP      expr ',' expr                   SRCB
  358.  
  359.        MPY       '#' expr ',' expr
  360.        MPY       '#' expr ',' expr               DSTA
  361.        MPY       '#' expr ',' expr               DSTB
  362.        MPY       expr ',' expr
  363.        MPY       expr ',' expr                   DSTA
  364.        MPY       expr ',' expr                   DSTB
  365.        MPY       expr ',' expr                   SRCB DSTA
  366.  
  367.        NOP
  368.  
  369.        OR        '#' expr ',' expr
  370.        OR        '#' expr ',' expr               DSTA
  371.        OR        '#' expr ',' expr               DSTB
  372.        OR        expr ',' expr
  373.        OR        expr ',' expr                   DSTA
  374.        OR        expr ',' expr                   DSTB
  375.        OR        expr ',' expr                   SRCB DSTA
  376.  
  377.        ORP       '#' expr ',' expr
  378.        ORP       expr ',' expr                   SRCA
  379.        ORP       expr ',' expr                   SRCB
  380.  
  381.        POP        STATUS
  382.        POP       expr
  383.        POP       expr                            DSTA
  384.        POP       expr                            DSTB
  385.  
  386.        PUSH       STATUS
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                                   - 7 -
  401.  
  402.  
  403.  
  404.        Opcode   Syntax                           Selection Criteria
  405.  
  406.        PUSH      expr
  407.        PUSH      expr                            DSTA
  408.        PUSH      expr                            DSTB
  409.  
  410.        RETI
  411.  
  412.        RETS
  413.  
  414.        RL        expr
  415.        RL        expr                            DSTA
  416.        RL        expr                            DSTB
  417.  
  418.        RLC       expr
  419.        RLC       expr                            DSTA
  420.        RLC       expr                            DSTB
  421.  
  422.        RR        expr
  423.        RR        expr                            DSTA
  424.        RR        expr                            DSTB
  425.  
  426.        RRC       expr
  427.        RRC       expr                            DSTA
  428.        RRC       expr                            DSTB
  429.  
  430.        SBB       '#' expr ',' expr
  431.        SBB       '#' expr ',' expr               DSTA
  432.        SBB       '#' expr ',' expr               DSTB
  433.        SBB       expr ',' expr
  434.        SBB       expr ',' expr                   DSTA
  435.        SBB       expr ',' expr                   DSTB
  436.        SBB       expr ',' expr                   SRCB DSTA
  437.  
  438.        SETC
  439.  
  440.        STA       '[' expr ']'
  441.        STA       expr '(' REG ')'                SRCB
  442.        STA       expr
  443.  
  444.        STSP
  445.  
  446.        SUB       '#' expr ',' expr
  447.        SUB       '#' expr ',' expr               DSTA
  448.        SUB       '#' expr ',' expr               DSTB
  449.        SUB       expr ',' expr
  450.        SUB       expr ',' expr                   DSTA
  451.        SUB       expr ',' expr                   DSTB
  452.        SUB       expr ',' expr                   SRCB DSTA
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.                                   - 8 -
  467.  
  468.  
  469.  
  470.        Opcode   Syntax                           Selection Criteria
  471.  
  472.  
  473.        SWAP      expr
  474.        SWAP      expr                            DSTA
  475.        SWAP      expr                            DSTB
  476.  
  477.        TRAP      expr
  478.  
  479.        TSTA
  480.  
  481.        TSTB
  482.  
  483.        XCHB      expr
  484.        XCHB      expr                            DSTA
  485.        XCHB      expr                            DSTB
  486.  
  487.        XOR       '#' expr ',' expr
  488.        XOR       '#' expr ',' expr               DSTA
  489.        XOR       '#' expr ',' expr               DSTB
  490.        XOR       expr ',' expr
  491.        XOR       expr ',' expr                   DSTA
  492.        XOR       expr ',' expr                   DSTB
  493.        XOR       expr ',' expr                   SRCB DSTA
  494.  
  495.        XORP      '#' expr ',' expr
  496.        XORP      expr ',' expr                   SRCA
  497.        XORP      expr ',' expr                   SRCB
  498.  
  499.        A.2.3  Selection_Criteria_Keywords
  500.  
  501.             DSTA                The instruction will use a short
  502.                                 form if the A register is used as
  503.                                 the destination register.
  504.  
  505.             DSTB                The instruction will use a short
  506.                                 form if the B register is used as
  507.                                 the destination register.
  508.  
  509.             SRCA                The instruction will use a short
  510.                                 form if the A register is used as
  511.                                 the source register.
  512.  
  513.             SRCB                The instruction will use a short
  514.                                 form if the B register is used as
  515.                                 the source register.
  516.  
  517.        A.2.4  Apostrophes  The apostrophes in the syntax field are
  518.        a notation used for the parser generator and are not put in
  519.        the assembler source statement.
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.                                   - 9 -
  533.  
  534.  
  535.  
  536.        A.3  Notes
  537.  
  538.        A.3.1  Reserved_Symbols
  539.  
  540.        A.3.1.1  Machine_Dependent_Reserved_Symbols  A B ST a b st
  541.  
  542.        A.3.1.2  Standard_Reserved_Symbols  AND DEFINED EQ GE GT
  543.        HIGH LE LOW LT MOD NE NOT OR SHL SHR XOR and defined eq ge
  544.        gt high le low lt mod ne not or shl shr xor
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.                                  CONTENTS
  603.  
  604.  
  605.        A.  Appendix for as7000 Frankenstein Assembler...........  1
  606.            A.1  Pseudo Operations...............................  1
  607.            A.2  Instructions....................................  1
  608.            A.3  Notes...........................................  9
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.                                   - i -
  657.  
  658.  
  659.  
  660.  
  661.